package com.sniff.atp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @BelongsProject: sniff-atp
 * @BelongsPackage: com.sniff.atp.entity
 * @Author: zxy
 * @CreateTime: 2022-11-23 10:51
 * @Description: 测试结果记录
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("execute_result")
@ApiModel(value="ExecuteResult对象", description="执行结果记录")
public class ExecuteResult implements Serializable {

    /**
     *   `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
     *   `case_name` varchar(10) DEFAULT NULL COMMENT '用例集合',
     *   `total_count` int(10) DEFAULT NULL COMMENT '用例总数',
     *   `pass_count` int(10) DEFAULT NULL COMMENT '成功数',
     *   `fail_count` int(10) DEFAULT NULL COMMENT '失败数',
     *   `skip_count` int(10) DEFAULT NULL COMMENT '跳过数',
     *   `pass_rate` float(10) DEFAULT NULL COMMENT '通过率',
     *   `start_time` datetime DEFAULT NULL COMMENT '开始时间',
     *   `end_time` datetime DEFAULT NULL COMMENT '结束时间',
     *   `create_time` datetime default CURRENT_TIMESTAMP not null comment '创建时间',
     */

    @TableId(value ="id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建日期")
    private Date create_time;
    @ApiModelProperty(value = "开始日期")
    private Date start_time;
    @ApiModelProperty(value = "结束日期")
    private Date end_time;

    @ApiModelProperty(value = "用例名称")
    private String case_name;

    @ApiModelProperty(value = "用例总数")
    private Integer total_count;

    @ApiModelProperty(value = "通过数")
    private Integer pass_count;

    @ApiModelProperty(value = "失败数")
    private Integer fail_count;

    @ApiModelProperty(value = "跳过数")
    private Integer skip_count;

    @ApiModelProperty(value = "通过率")
    private Float pass_rate;
}
